package MtG.publicClass;

import java.io.Serializable;

/**
 * Message,java is a template class for different types of server messages.
 * @author Marek Sirp
 * @author Jaan Sepp
 */
public abstract class Message implements Serializable{
	/**
	 * Determines if a de-serialized file is compatible with this class.
	 */
	private static final long serialVersionUID = -4208591356067131994L;
	/**
	 * Player involved with this message.
	 */
	Player player = new Player();
	/**
	 * Field that holds the message text itself.
	 */
	private String message;

	/**
	 * Setter for message.
	 * @param message
	 */
	public void setMessage(String message) {
		this.message = message;
	}
	
	@Override
	public String toString() {
		return message;
	}
	

}
